<div class="container-flucategory_id">
<?php 
//get item param from model
$categories = $viewModel->get('categories');
if(!is_object($categories)){
  echo 'categories is not exist!';
}else{
?>

<h1>categories Update form</h1>
<form class="form-horizontal" method="POST">
  <div class="control-group" style="display: none;">
    <label class="control-label" for="inputcategory_name">category_id</label>
    <div class="controls">
      <input type="text" id="inputcategory_id" name="category_id" value="<?php echo $categories->category_id; ?>">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="inputcategory_name">category_name</label>
    <div class="controls">
      <input type="text" id="inputcategory_name" name="category_name" value="<?php echo $categories->category_name; ?>" placeholder="category_name">
    </div>
  </div>
  <div class="control-group">
            <label class="control-label" for="inputStatus">Status</label>
            <div class="controls">
                <select name="status">
                    <option value="0">Deactive</option>
                    <option value="1">Active</option>
                </select>
            </div>
        </div>
    <div class="control-group">
                <label class="control-label" for="inputDescription">Description</label>
                <div class="controls">
                    <textarea id="inputDescription" class="editor_noimage" name="description" placeholder="Description"  required="required" style="margin: 0px; height: 167px; width: 457px;"><?php echo $categories->description; ?></textarea>
                </div>
            </div>
  <div class="control-group">
    <div class="controls">
      <button type="submit" class="btn btn-success">Submit</button>
      <button type="reset" class="btn">Reset</button>
    </div>
  </div>
</form>
<?php } ?>
</div>